//package bingfa;
//
//import com.alibaba.fastjson.JSON;
//import com.cft.server.common.util.wechat.ClientPost;
//import com.cft.server.controller.wx.entity.request.WechatDeviceRequest;
//
//import java.io.IOException;
//
//public class test_wechat_bluetooth {
//
//    private static final String GetStatUrl = "https://api.weixin.qq.com/device/get_stat?access_token=ACCESS_TOKEN&device_id=DEVICE_ID";
//    private static final String GetOpenidUrl = "https://api.weixin.qq.com/device/get_openid?access_token=ACCESS_TOKEN&device_type=DEVICE_TYPE&device_id=DEVICE_ID";
//
//    public static void main(String[] args){
////        String deviceId = "gh_93367ff90026_4e388d9b7eff871a";
//        String deviceId = "gh_93367ff90026_678e47a84b3e1d92";
//
//        String deviceType = "gh_93367ff90026";
//        String accessToken = "w366-O06QvRbhjmIiINP9jQ9r0KZ4JhpbKv-w_f83s6Tlsw4Nsuiiehr2kFEuTPbDl3tPY2lQ3mYaA91rkoMWK438hnbQkddg-dE7ns7CYU4yvJTA-67EeT_B1uS67RuQSVgAFAZBE";
//        WechatDeviceRequest request = new WechatDeviceRequest();
//        request.setConnect_protocol("3");
//        request.setAuth_key("000102030405060708090A0B0C0D0E0F");
////        request.setAuth_key("");
//        request.setClose_strategy("1");
//        request.setConn_strategy("1");
//        request.setCrypt_method("0");
//        request.setAuth_ver("0");
//        request.setManu_mac_pos("-1");
//        request.setSer_mac_pos("-2");
//        request.setMac("CF9C3B5D123A");
//        request.setId(deviceId);
//        ClientPost.sendPost("http://cft.ihengtian.top/api/cft/wechat/authorize/device",
//                JSON.toJSONString(request));
//
//        String getStatUrl = GetStatUrl.replace("DEVICE_ID", deviceId).replace("ACCESS_TOKEN",accessToken);
//
//
//        String url = GetOpenidUrl.replace("DEVICE_TYPE", deviceType).replace(
//                "DEVICE_ID", deviceId).replace("ACCESS_TOKEN",accessToken);
////        try {
////            ClientPost.get(getStatUrl);
//////            ClientPost.get(url);
////        } catch (IOException e) {
////            e.printStackTrace();
////        }
//
//    }
//}
